package com.yaodian100.crm.activities.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author yanling.wu
 */
@Entity
@Table(name = "CRM_MGM_COUPON")
public class MgmCoupon implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String memberId;
	// 礼券号
	private String couponId;
	private String couponName;
	private String toMemeberId;
	// 标记是否使用 0--> 未使用 1-->发送 2--->使用
	private int isuse;
	private String userName;

	/**
	 * @return the isuse
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param memberId the isuse to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the isuse
	 */
	public int getIsuse() {
		return isuse;
	}

	/**
	 * @param memberId the isuse to set
	 */
	public void setIsuse(int isuse) {
		this.isuse = isuse;
	}

	/**
	 * @return the TOMEMBERID
	 */
	@Column(length = 10)
	public String getToMemeberId() {
		return toMemeberId;
	}

	/**
	 * @param memberId the TOMEMBERID to set
	 */
	public void setToMemeberId(String toMemeberId) {
		this.toMemeberId = toMemeberId;
	}

	/**
	 * @return the couponName
	 */
	@Column(length = 20)
	public String getCouponName() {
		return couponName;
	}

	/**
	 * @param couponName the id to set
	 */
	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the memberId
	 */
	@Column(length = 10)
	public String getMemberId() {
		return memberId;
	}

	/**
	 * @param memberId the memberId to set
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * @return the couponId
	 */
	@Column(length = 10)
	public String getCouponId() {
		return couponId;
	}

	/**
	 * @param id the couponId to set
	 */
	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

}
